/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取设备的状态统计 POST /scenic/scenicSpotFacility/countFacilityStatus */
export async function scenicScenicSpotFacilityCountFacilityStatusUsingPost({
  body,
  options,
}: {
  body: API.sheshishebaochaxuncanshubo;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingMapint>(
    '/scenic/scenicSpotFacility/countFacilityStatus',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 删除基础设施 PUT /scenic/scenicSpotFacility/delScenicSpotFacility */
export async function scenicScenicSpotFacilityDelScenicSpotFacilityUsingPut({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicScenicSpotFacilityDelScenicSpotFacilityUsingPutParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/scenicSpotFacility/delScenicSpotFacility',
    {
      method: 'PUT',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 查询设施设备详情信息 POST /scenic/scenicSpotFacility/getScenicSpotFacility */
export async function scenicScenicSpotFacilityGetScenicSpotFacilityUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicScenicSpotFacilityGetScenicSpotFacilityUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingsheshishebaoxinxivo>(
    '/scenic/scenicSpotFacility/getScenicSpotFacility',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 分页查询设施设备信息 POST /scenic/scenicSpotFacility/pageScenicSpotFacility */
export async function scenicScenicSpotFacilityPageScenicSpotFacilityUsingPost({
  body,
  options,
}: {
  body: API.ScenicSpotFacilityQueryBo4da6041922b344c397d777520b21f61e;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVosheshishebaoxinxivo>(
    '/scenic/scenicSpotFacility/pageScenicSpotFacility',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 保存设施设备 修改则传递id POST /scenic/scenicSpotFacility/saveScenicSpotFacility */
export async function scenicScenicSpotFacilitySaveScenicSpotFacilityUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>(
    '/scenic/scenicSpotFacility/saveScenicSpotFacility',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
